# Contributor: Kasper K <kasperkantz@outlook.com>
# Maintainer: Kasper K <kasperkantz@outlook.com>
pkgname=libideviceactivation
pkgver=1.1.1
pkgrel=4
pkgdesc="Library to handle the activation process of iOS devices"
url="https://libimobiledevice.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libimobiledevice-dev curl-dev libxml2-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/libimobiledevice/libideviceactivation/releases/download/$pkgver/libideviceactivation-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
72d6e7024404d1a45e419ccdb7603268a1d96845c8636696b55d2c6edd3177b881ef0f5bd7aea548e88ef7976c83fbac63d3c3d7a9b76eba83de492c269ab02a  libideviceactivation-1.1.1.tar.bz2
"
